package com.iam.controller;


import com.iam.util.CommonResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author liyong
 * @since 2021-05-10
 */
@RestController
@RequestMapping("/role")
public class RoleController {


    // throw后，方法都会throws
    public CommonResult getRole() throws Exception {
        throw new Exception("no such method");
    }


    public CommonResult getOne() {
        throw new RuntimeException("this is run time, can't be throws");
    }

}

